package parsing.patternsource;

import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;

/**
 * Created with IntelliJ IDEA.
 * User: platonovv
 * Date: 29.11.13
 * To change this template use File | Settings | File Templates.
 */
public class HardcodedPatterns implements IPatternSource {
    private List<Pattern> patterns;

    public List<Pattern> getPatterns() {
        if (patterns == null) {
            patterns = new ArrayList<Pattern>();
            initPatterns();
        }
        return patterns;
    }

    private void initPatterns() {
        patterns.add(Pattern.compile("(Производитель)\\s+(\\w*)"));
    }
}
